// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.entity.AdjustmentOrder;
import com.fowo.api.model.adjustment.order.AdjustmentOrderDataFiltrationParam;
import com.fowo.api.model.adjustment.order.AdjustmentOrderDataFiltrationResult;
import com.fowo.api.model.adjustment.order.AdjustmentOrderItemVo;
import com.fowo.api.model.adjustment.order.AdjustmentOrderSearchParamPo;
import com.fowo.api.model.adjustment.order.AdjustmentOrderVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AdjustmentOrderMapper extends BaseMapper<AdjustmentOrder> {
  Page<AdjustmentOrderItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") AdjustmentOrderSearchParamPo search
  );
  List<OptionItem<AdjustmentOrderItemVo>> searchOptions(
    @Param("search") AdjustmentOrderSearchParamPo search
  );
  List<AdjustmentOrderItemVo> search(
    @Param("search") AdjustmentOrderSearchParamPo search
  );
  Date searchLastUpdateTime(
    @Param("search") AdjustmentOrderSearchParamPo search
  );
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(@Param("search") AdjustmentOrderSearchParamPo search);
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(@Param("search") AdjustmentOrderSearchParamPo search);
  Long getIdByOrderSn(@Param("orderSn") String orderSn);

  List<Long> getIdsByOrderSn(@Param("list") List<String> list);

  String getOrderSnById(@Param("id") Long id);

  List<Map<String, Object>> getOrderSnByIds(@Param("ids") List<Long> ids);
  AdjustmentOrderVo selectVoById(@Param("id") Long id);
  /**
   * 全部
   */
  List<AdjustmentOrderItemVo> vadAll(
    @Param("search") AdjustmentOrderSearchParamPo search
  );

  /**
   * 获取全部编号列表
   */
  List<Long> vadAllIds(@Param("search") AdjustmentOrderSearchParamPo search);

  /**
   * 获取全部的总数
   */
  Long vadAllCount(@Param("search") AdjustmentOrderSearchParamPo search);

  /**
   * 全部分页
   */
  Page<AdjustmentOrderItemVo> vadAllPage(
    @Param("page") Page page,
    @Param("search") AdjustmentOrderSearchParamPo search
  );
  Date vadAllLastUpdateTime(
    @Param("search") AdjustmentOrderSearchParamPo search
  );
  /**
   * 待提交
   */
  List<AdjustmentOrderItemVo> vadSubmit(
    @Param("search") AdjustmentOrderSearchParamPo search
  );

  /**
   * 获取待提交编号列表
   */
  List<Long> vadSubmitIds(@Param("search") AdjustmentOrderSearchParamPo search);

  /**
   * 获取待提交的总数
   */
  Long vadSubmitCount(@Param("search") AdjustmentOrderSearchParamPo search);

  /**
   * 待提交分页
   */
  Page<AdjustmentOrderItemVo> vadSubmitPage(
    @Param("page") Page page,
    @Param("search") AdjustmentOrderSearchParamPo search
  );
  Date vadSubmitLastUpdateTime(
    @Param("search") AdjustmentOrderSearchParamPo search
  );
  /**
   * 待审批
   */
  List<AdjustmentOrderItemVo> vadApprove(
    @Param("search") AdjustmentOrderSearchParamPo search
  );

  /**
   * 获取待审批编号列表
   */
  List<Long> vadApproveIds(
    @Param("search") AdjustmentOrderSearchParamPo search
  );

  /**
   * 获取待审批的总数
   */
  Long vadApproveCount(@Param("search") AdjustmentOrderSearchParamPo search);

  /**
   * 待审批分页
   */
  Page<AdjustmentOrderItemVo> vadApprovePage(
    @Param("page") Page page,
    @Param("search") AdjustmentOrderSearchParamPo search
  );
  Date vadApproveLastUpdateTime(
    @Param("search") AdjustmentOrderSearchParamPo search
  );
  /**
   * 待调整
   */
  List<AdjustmentOrderItemVo> vadChange(
    @Param("search") AdjustmentOrderSearchParamPo search
  );

  /**
   * 获取待调整编号列表
   */
  List<Long> vadChangeIds(@Param("search") AdjustmentOrderSearchParamPo search);

  /**
   * 获取待调整的总数
   */
  Long vadChangeCount(@Param("search") AdjustmentOrderSearchParamPo search);

  /**
   * 待调整分页
   */
  Page<AdjustmentOrderItemVo> vadChangePage(
    @Param("page") Page page,
    @Param("search") AdjustmentOrderSearchParamPo search
  );
  Date vadChangeLastUpdateTime(
    @Param("search") AdjustmentOrderSearchParamPo search
  );
  /**
   * 已完成
   */
  List<AdjustmentOrderItemVo> vadFinshed(
    @Param("search") AdjustmentOrderSearchParamPo search
  );

  /**
   * 获取已完成编号列表
   */
  List<Long> vadFinshedIds(
    @Param("search") AdjustmentOrderSearchParamPo search
  );

  /**
   * 获取已完成的总数
   */
  Long vadFinshedCount(@Param("search") AdjustmentOrderSearchParamPo search);

  /**
   * 已完成分页
   */
  Page<AdjustmentOrderItemVo> vadFinshedPage(
    @Param("page") Page page,
    @Param("search") AdjustmentOrderSearchParamPo search
  );
  Date vadFinshedLastUpdateTime(
    @Param("search") AdjustmentOrderSearchParamPo search
  );
  /**
   * 已撤销
   */
  List<AdjustmentOrderItemVo> vadRevoke(
    @Param("search") AdjustmentOrderSearchParamPo search
  );

  /**
   * 获取已撤销编号列表
   */
  List<Long> vadRevokeIds(@Param("search") AdjustmentOrderSearchParamPo search);

  /**
   * 获取已撤销的总数
   */
  Long vadRevokeCount(@Param("search") AdjustmentOrderSearchParamPo search);

  /**
   * 已撤销分页
   */
  Page<AdjustmentOrderItemVo> vadRevokePage(
    @Param("page") Page page,
    @Param("search") AdjustmentOrderSearchParamPo search
  );
  Date vadRevokeLastUpdateTime(
    @Param("search") AdjustmentOrderSearchParamPo search
  );
  /**
   * 数量调整
   */
  void quantityAdjustmentPeriod();
  /**
   * SKU调整
   */
  void skuAdjustment();
  /**
   * 查询可用量
   */
  void queryAvailability();
  /**
   * 查询店铺
   */
  void storeLocator();
  /**
   * 查询fnsku
   */
  void queryFnsku();
  /**
   * 保存新数据
   */
  void saveNewData();
  /**
   * 查询可用库位
   */
  void queryAvailableDatabase();
  /**
   * 查询次品库位
   */
  void queryDefectiveDatabase();
  /**
   * 查询库位数量
   */
  void queryNumberDatabase();
  /**
   * 查询SKU
   */
  void querySku();
  /**
   * 筛选数据
   */
  Page<AdjustmentOrderDataFiltrationResult> dataFiltration(
    Page page,
    @Param("search") AdjustmentOrderDataFiltrationParam param
  );
}
